package com.kila.enity;

public class Course {
    private String courseName;
    private int courseHour;
    private Teacher teacherl; //依赖于Teacher类

    public Course() {

    }


    public Course(String courseName, int courseHour, Teacher teacherl) {
        this.courseName = courseName;
        this.courseHour = courseHour;
        this.teacherl = teacherl;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public int getCourseHour() {
        return courseHour;
    }

    public void setCourseHour(int courseHour) {
        this.courseHour = courseHour;
    }

    public Teacher getTeacherl() {
        return teacherl;
    }

    public void setTeacherl(Teacher teacherl) {
        this.teacherl = teacherl;
    }

    public void showInfo(){
        System.out.println(this.courseName+","+this.courseHour+","+this.teacherl.toString());
    }
}
